package com.weactivity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weactivity.dto.ActivityCreateInfo;
import com.weactivity.dto.ActivitySimpleDTO;
import com.weactivity.dto.Result;
import com.weactivity.dto.UARDTO;
import com.weactivity.entity.Activity;
import org.springframework.stereotype.Service;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;


public interface ActivityService extends IService<Activity> {


    int insertAct(Activity activity);

    List<ActivitySimpleDTO> showSimpleAll();

    List<Activity> selectAllActivity();

    List<Activity> selectValidActivity();

    boolean ackJoinActivity(int activityId, List<Activity> validActivityList);

    boolean judgeJoined(int activityId, List<Activity> validActivityList);

    int insertUseUidAndAid(int activityId);

    int newActivity(Activity activity);

    boolean sendDefaultMessageToPartis(LinkedList<Integer> participantIdList);

    boolean sendDIYMessageToPartis(LinkedList<Integer> participantIdList);

    int insertActOrganizer(int id);

    Result createActByARP(ActivityCreateInfo activityCreateInfo);

    List<Integer> findManagerIdsByAid(int aid);

    Activity searchActInfo(String keyword);

    int findRole(int aid);

    int setManager(int aid, String keyword);

    int deleteManager(int uid, int aid);

    Activity findActivityById(Integer activityId);

    int actPartCount(int id);

    List<UARDTO> selectAllUser(int aid);
}
